package com.example.visitor;

public class CTO implements Visitor{

    private String name;

    public CTO(String name) {
        this.name = name;
    }

    public void setName(String name) {
        this.name = name;
    }


    @Override
    public void visit(Manager employ) {
        System.out.println("CTO " + name + " visit " + employ.getName()+"关注的是每个项目是否按时交付");
    }

    @Override
    public void visit(Programer employ) {
        System.out.println("CTO " + name + " visit " + employ.getName()+"关注的是bug数量有多少");
    }

    @Override
    public String getName() {
        return null;
    }
}
